{include template('header', 'common')}
<!--main-->
<div class="main">
	<div class="col-left">
    	<div class="crumbs"><a href="{__ROOT__}">首页</a><span> > </span>{catpos($catid)} 列表</div>
    	{pc:document action="lists" catid="$catid" num="2" order="id DESC" page="$page"}
        <ul class="list lh24 f14">
        {loop $data $r}
        <li><span class="rt">{date('Y-m-d H:i:s',$r['inputtime'])}</span>·<a href="{$r['url']}" target="_blank"{title_style($r['style'])}>{$r['title']}</a></li>
        <?php if ($n % 5 == 0): ?>
            <li class="bk20 hr"></li>
        <?php endif; ?>
        {/loop}
        </ul>
        <div id="pages" class="text-c">{$pages}</div>
        {/pc}
    </div>
    <div class="col-auto">
        <div class="box">
            <h5 class="title-2">频道总排行</h5>
            {pc:document action="hits" catid="$catid" num="10" order="views DESC" cache="3600"}
            <ul class="content digg">
				{loop $data $r}
					<li><a href="{$r.url}" {title_style($r['style'])} target="_blank">{$r[title]}</a></li>
				{/loop}
            </ul>
            {/pc}
        </div>
        <div class="bk10"></div>
        <div class="box">
            <h5 class="title-2">频道本月排行</h5>
            {pc:document action="hits" catid="$catid" num="8" order="monthviews DESC" cache="3600"}
            <ul class="content rank">
				{loop $data $r}
				<li><span>{number_format($r['monthviews'])}</span><a href="{$r['url']}" {title_style($r['style'])} class="title" title="{$r['title']}">{str_cut($r['title'],56,'...')}</a></li>
				{/loop}
            </ul>
            {/pc}
        </div>
    </div>
</div>
{include template('footer', 'common')}